package com.lsh.streamgd.db.service.impl;

import com.lsh.streamgd.db.dao.AgentMapper;
import com.lsh.streamgd.db.models.Agent;
import com.lsh.streamgd.db.service.AgentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author ljgsonx
 * @date 2017/6/11 0:39
 */
@Service
public class AgentServiceImpl implements AgentService{

    @Resource
    private AgentMapper agentMapper;

    @Override
    public int insertSelective(Agent record) {
        return agentMapper.insertSelective(record);
    }

    @Override
    public List<Agent> getAgentByUri(String agentUri) {
        return agentMapper.getAgentByUri(agentUri);
    }

}
